.class Les/ax$a;
.super Lcom/estrongs/android/ui/base/ActionModeCallback;
.source "UIControllerImpl.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Les/ax;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic c:Les/ax;


# direct methods
.method constructor <init>(Les/ax;)V
    .locals 0

    .line 1
    iput-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-direct {p0}, Lcom/estrongs/android/ui/base/ActionModeCallback;-><init>()V

    return-void
.end method


# virtual methods
.method public a()Landroid/content/Context;
    .locals 1

    .line 1
    iget-object v0, p0, Les/ax$a;->c:Les/ax;

    iget-object v0, v0, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    return-object v0
.end method

.method public c()Z
    .locals 1

    const/4 v0, 0x1

    return v0
.end method

.method public onActionItemClicked(Landroidx/appcompat/view/ActionMode;Landroid/view/MenuItem;)Z
    .locals 0

    const/4 p1, 0x1

    return p1
.end method

.method public onCreateActionMode(Landroidx/appcompat/view/ActionMode;Landroid/view/Menu;)Z
    .locals 3

    .line 1
    new-instance p2, Les/ax$a$a;

    iget-object v0, p0, Les/ax$a;->c:Les/ax;

    iget-object v0, v0, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-direct {p2, p0, v0}, Les/ax$a$a;-><init>(Les/ax$a;Landroid/content/Context;)V

    .line 2
    iget-object v0, p0, Les/ax$a;->c:Les/ax;

    iget-object v0, v0, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-static {v0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    const v1, 0x7f0c02cb

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-direct {v1, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {p2, v0, v1}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 3
    invoke-virtual {p1, p2}, Landroidx/appcompat/view/ActionMode;->setCustomView(Landroid/view/View;)V

    .line 4
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    const v0, 0x7f090a58

    invoke-virtual {p2, v0}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    invoke-static {p1, v0}, Les/ax;->a(Les/ax;Landroid/widget/TextView;)Landroid/widget/TextView;

    .line 5
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->k(Les/ax;)Landroid/widget/TextView;

    move-result-object p1

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Landroid/widget/TextView;->setVisibility(I)V

    const p1, 0x7f090bcf

    .line 6
    invoke-virtual {p2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 7
    new-instance v1, Les/ax$a$b;

    invoke-direct {v1, p0}, Les/ax$a$b;-><init>(Les/ax$a;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f090910

    .line 8
    invoke-virtual {p2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 9
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const v2, 0x7f08097a

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 10
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    const v1, 0x7f090bcd

    invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-static {p1, v1}, Les/ax;->a(Les/ax;Landroid/view/View;)Landroid/view/View;

    .line 11
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->a(Les/ax;)Landroid/view/View;

    move-result-object p1

    new-instance v1, Les/ax$a$c;

    invoke-direct {v1, p0}, Les/ax$a$c;-><init>(Les/ax$a;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p1, 0x7f09090f

    .line 12
    invoke-virtual {p2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 13
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const v2, 0x7f080984

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 14
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    const v1, 0x7f090bd3

    invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-static {p1, v1}, Les/ax;->b(Les/ax;Landroid/view/View;)Landroid/view/View;

    .line 15
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->b(Les/ax;)Landroid/view/View;

    move-result-object p1

    new-instance v1, Les/ax$a$d;

    invoke-direct {v1, p0}, Les/ax$a$d;-><init>(Les/ax$a;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 16
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->b(Les/ax;)Landroid/view/View;

    move-result-object p1

    const v1, 0x7f090912

    invoke-virtual {p1, v1}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    .line 17
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    const p1, 0x7f090bd1

    .line 18
    invoke-virtual {p2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 19
    new-instance v1, Les/ax$a$e;

    invoke-direct {v1, p0}, Les/ax$a$e;-><init>(Les/ax$a;)V

    invoke-virtual {p1, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 20
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    const v1, 0x7f090911

    invoke-virtual {p2, v1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageView;

    invoke-static {p1, v1}, Les/ax;->a(Les/ax;Landroid/widget/ImageView;)Landroid/widget/ImageView;

    .line 21
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->m(Les/ax;)Landroid/widget/ImageView;

    move-result-object p1

    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const v2, 0x7f08097d

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->g(I)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 22
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->m(Les/ax;)Landroid/widget/ImageView;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setEnabled(Z)V

    const p1, 0x7f090bd8

    .line 23
    invoke-virtual {p2, p1}, Landroid/widget/LinearLayout;->findViewById(I)Landroid/view/View;

    move-result-object p1

    .line 24
    new-instance p2, Les/ax$a$f;

    invoke-direct {p2, p0}, Les/ax$a$f;-><init>(Les/ax$a;)V

    invoke-virtual {p1, p2}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const/4 p1, 0x1

    return p1
.end method

.method public onDestroyActionMode(Landroidx/appcompat/view/ActionMode;)V
    .locals 1

    .line 1
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    const/4 v0, 0x0

    invoke-static {p1, v0}, Les/ax;->a(Les/ax;Landroidx/appcompat/view/ActionMode;)Landroidx/appcompat/view/ActionMode;

    return-void
.end method

.method public onPrepareActionMode(Landroidx/appcompat/view/ActionMode;Landroid/view/Menu;)Z
    .locals 4

    .line 1
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    iget-object p1, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    const/4 p2, 0x1

    if-eqz p1, :cond_5

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    if-nez p1, :cond_0

    goto/16 :goto_1

    .line 2
    :cond_0
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->a(Les/ax;)Landroid/view/View;

    move-result-object p1

    const/4 v0, 0x0

    if-eqz p1, :cond_2

    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->b(Les/ax;)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_2

    .line 3
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    iget v1, p1, Les/zw;->h:I

    iget v2, p1, Les/zw;->i:I

    const/16 v3, 0x8

    if-ne v1, v2, :cond_1

    .line 4
    invoke-static {p1}, Les/ax;->b(Les/ax;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 5
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->a(Les/ax;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 6
    :cond_1
    invoke-static {p1}, Les/ax;->b(Les/ax;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v3}, Landroid/view/View;->setVisibility(I)V

    .line 7
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->a(Les/ax;)Landroid/view/View;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/view/View;->setVisibility(I)V

    .line 8
    :cond_2
    :goto_0
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->k(Les/ax;)Landroid/widget/TextView;

    move-result-object p1

    if-eqz p1, :cond_3

    .line 9
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->k(Les/ax;)Landroid/widget/TextView;

    move-result-object p1

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Les/ax$a;->c:Les/ax;

    iget v2, v2, Les/zw;->h:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string v2, "/"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v2, p0, Les/ax$a;->c:Les/ax;

    iget v2, v2, Les/zw;->i:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 10
    :cond_3
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->m(Les/ax;)Landroid/widget/ImageView;

    move-result-object p1

    if-eqz p1, :cond_5

    .line 11
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    iget-object p1, p1, Les/zw;->a:Lcom/estrongs/android/pop/view/FileExplorerActivity;

    invoke-virtual {p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->Z()Lcom/estrongs/android/view/FileGridViewWrapper;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/view/FeaturedGridViewWrapper;->l()Z

    move-result p1

    if-eqz p1, :cond_4

    .line 12
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->m(Les/ax;)Landroid/widget/ImageView;

    move-result-object p1

    invoke-virtual {p1, p2}, Landroid/widget/ImageView;->setEnabled(Z)V

    goto :goto_1

    .line 13
    :cond_4
    iget-object p1, p0, Les/ax$a;->c:Les/ax;

    invoke-static {p1}, Les/ax;->m(Les/ax;)Landroid/widget/ImageView;

    move-result-object p1

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setEnabled(Z)V

    :cond_5
    :goto_1
    return p2
.end method
